package com.shop.cereshop.app.param.recommend;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author 罗霄
 */
@Data
@ApiModel(value = "RecommendCommentAddDTO", description = "动态评论新增参数")
@Accessors(chain = true)
public class RecommendCommentAddDTO {

    @ApiModelProperty(value = "动态id(一级评论时传入)")
    private Long recommendId;

    @ApiModelProperty(value = "父评论id(二级评论时传入)")
    private Long parentCommentId;

    @ApiModelProperty(value = "业务字段不需要传，根评论id(若为一级评论则为自身评论id)")
    private Long rootCommentId;

    @ApiModelProperty(value = "业务字段不需要传，发布者id")
    private Long userId;

    @ApiModelProperty(value = "@他人信息,用户id和名称的映射")
    private Map<Long, String> atUser;

    @ApiModelProperty(value = "评论内容", required = true)
    private String content;

    @ApiModelProperty(value = "图片字符串集合")
    private List<String> imageList;

    @ApiModelProperty(value = "图片")
    private String images;

    @ApiModelProperty(value = "文件id")
    private String mediaId;

    @ApiModelProperty(value = "评论发布地址")
    private String commentAddress;
}
